//
//  GNRSelectionCardView.h
//  GNRPickCard_Example
//
//  Created by LvYuan on 2017/11/1.
//  Copyright © 2017年 ly918@qq.com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GNRSelectionCardConfigProtocol.h"
#import "GNRBaseSelectionCell.h"

typedef void(^GNRSelectionCardSelectItemBlock)(id<GNRSelectionItemProtocol>item);
typedef void(^GNRSelectionCardSelectFooterBlock)(UIView *footerView);
typedef void(^GNRSelectionCardSelectHeaderBlock)(UIView *HeaderView);

@interface GNRSelectionCardView : UIView

@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property (strong, nonatomic) UIView *headerView;
@property (strong, nonatomic) UIView *footerView;

@property (weak, nonatomic) id <GNRSelectionCardConfigProtocol> config_UI;

@property (nonatomic, strong) NSMutableArray <id<GNRSelectionItemProtocol>>* items;

@property (nonatomic, copy)GNRSelectionCardSelectItemBlock selectBlock;
@property (nonatomic, copy)GNRSelectionCardSelectFooterBlock selectFooterBlock;
@property (nonatomic, copy)GNRSelectionCardSelectHeaderBlock selectHeaderBlock;

- (void)reloadData;

@end
